package com.wiki.service;

import com.wiki.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wiki.utils.commonRequest.user.UserLoginReq;
import com.wiki.utils.commonRequest.user.UserQueryReq;
import com.wiki.utils.commonRequest.user.UserResetPasswordReq;
import com.wiki.utils.commonRequest.user.UserSaveReq;
import com.wiki.utils.commonResponse.UserLoginResp;
import com.wiki.utils.commonResponse.UserQueryResp;
import com.wiki.utils.commonResponse.PageResp;

/**
 * <p>
 * 用户 服务类
 * </p>
 *
 * @author 偷闰土的猹
 * @since 2022-01-15
 */
public interface UserService extends IService<User> {
    public PageResp<UserQueryResp> listAll(UserQueryReq req);

    //保存
    public void save(UserSaveReq req);

    //删除
    public void delete(Long id);

    //    模糊查询
    public PageResp<UserQueryResp> queryLike(UserQueryReq req);

    //    查询用户名是否存在
    public User selectByLoginName(String LoginName);

    //    修改密码
    public void resetPassword(UserResetPasswordReq req);

    //    登录
    public UserLoginResp login(UserLoginReq req);
}
